import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
import {uploadAudio,uploadAudio1,uploadImg,upload,uploadVideo,uploadAvatar,uploadVideoQiniu,isAuthorize, ptHost, ptId} from './api/request.js'
import {uploadImgNew} from './haoduogeni/common/utils/request';

Vue.prototype.$uploadImgNew = uploadImgNew;

Vue.prototype.$uploadAudio = uploadAudio
Vue.prototype.$uploadAudio1 = uploadAudio1

Vue.prototype.$uploadImg = uploadImg
Vue.prototype.$upload = upload
Vue.prototype.$uploadVideo = uploadVideo
Vue.prototype.$uploadAvatar = uploadAvatar
Vue.prototype.$uploadVideoQiniu = uploadVideoQiniu
Vue.prototype.$isAuthorize = isAuthorize

Vue.prototype.$ptHost = ptHost
Vue.prototype.$ptId = ptId

App.mpType = 'app'
// 引入全局uView
import uView from 'uview-ui';
Vue.use(uView);
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif